package cn.bdqn.controller;

import cn.bdqn.pojo.LanguageCategory;
import cn.bdqn.service.LanguageCategoryService;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.annotation.Resource;
import java.util.List;

@Controller
public class LanguageCategoryController {
    @Resource
    LanguageCategoryService languageCategoryService;

    @ResponseBody
    @RequestMapping("/selectAll")
    public Object selectAll(){
        List<LanguageCategory> lists = languageCategoryService.selectAll();
        return lists;
    }
}
